package DistSys;

public class Layer {

  public static final int ON=0, OFF=1, GRAY=2;
  public static final String[] STR_MODE = {"On","Off","Gray"};

  private int index;
  private String name;
  private int mode;
  private int engine;

  public Layer() { }
  public Layer(int i, String n, int m, int e){
      this.index = i;
      this.name = n;
      this.mode = m;
      this.engine =e;
  }

  public void setIndex(int id){ this.index = id; }
  public int  getIndex(){ return this.index;}

  public void setName(String s){ this.name = new String(s);}
  public String getName(){ return this.name; }

  public void setMode( int m){ this.mode = m; }
  public int  getMode() { return this.mode; }

  public void setEngine( int i ){ this.engine = i; }
  public int  getEngine(){  return this.engine; }
}

